package com.wd.cloud.applet.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 生成随机订单号字符串
 */
public class OrderNumberUtils {
    /**
     * 订单号
     * @return
     */
    public static String OrderNumber(String type){
        Date dt = new Date();
        SimpleDateFormat time = new SimpleDateFormat("yyyyMMddhhmmss");
        String data = type+time.format(dt)+(int)((Math.random()*9+1)*10000);
        return data;
    }

}
